package com.jungle.design.mode.state.dto;

import com.jungle.design.mode.state.OrderStateEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @author Jungle
 * @create 2023-12-09 9:44
 */

@SuperBuilder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDTO {
    private OrderStateEnum state;
    /**
     * 保证轮转
     */
    public void nextState() {
        state.nextState(this);
    }
}
